//
//  JWKTool.swift
//  Weibo
//
//  Created by 姜维克 on 16/5/19.
//  Copyright © 2016年 姜维克. All rights reserved.
//

import UIKit
//import SVProgressHUD
//import AFNetworking
//import SDWebImage

//swift中统一命名空间下文件都是共享的---全局共享的属性
let UIScreenWidth = UIScreen.mainScreen().bounds.width
let UIScreenHeight = UIScreen.mainScreen().bounds.height

let client_id = "3046392251"
let redirect_uri = "http://www.baidu.com"
let client_secret = "2f3fb37d28a852e6b99bd304ad1f6b37"

//设置网络错误信息
let networkErrorMessage = "世界上最远的距离就是没有网络"

//定义通知的名称
let SwitchRootViewController = "SwitchRootViewController"

//定义日期格式化对象--统一的全局属性,防止重复创建
let sharedDF = NSDateFormatter()

//随机颜色
func randomColor()->UIColor{

let red = CGFloat(random()%256) / 255.0
let blue = CGFloat(random()%256) / 255.0
let green = CGFloat(random()%256) / 255.0
return UIColor.init(red: red, green: green, blue: blue, alpha: 1)
}

//设置标准间距
let standardMargin : CGFloat = 8